package com.asset.dispoal.dicData.service.converter;

import com.asset.dispoal.dicData.domain.db.entity.GbDictData;
import com.asset.dispoal.dicData.dto.GbDictDataRequest;
import com.asset.dispoal.dicData.dto.GbDictDataResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/2/24$
 */
@Mapper
public interface GbDictDataConverter {

    GbDictDataConverter INSTANCE = Mappers.getMapper(GbDictDataConverter.class);

    GbDictData reqToDo(GbDictDataRequest request);

    GbDictDataResponse doToRes(GbDictData gbDictData);

    List<GbDictDataResponse> dosToRes(List<GbDictData> dataList);

}
